import java.util.*;
public class _01{
    public static void main(String[] args) {
        Scanner sc= new Scanner(System.in);
        int n= sc.nextInt();
        fun(n);

    }
    public static void fun(int a){
        int i=0;
        int b[]=new int[32];
        int j=0,w=0,k=0;
        if(a==0){
            System.out.print("0");
        }else if(a==2){
            System.out.print("2");
        }else if(a==1){
            System.out.print("2(0)");
        }else {
            while(a!=0){
                b[i]=a%2;
                a=a/2;
                i++;
            }
            w=i;
            k=0;j=0;
            for(i=w-1;i>=0;i--)
                if(b[i]!=0)
                {
                    j++;
                    if(i==1)System.out.print("2");
                    else{
                        System.out.print("2(");
                        fun(i);
                        System.out.print(")");}
                        if(j!=k)System.out.print("+");
                    
                }
        }
        
    }
}